import * as express from 'express'
// import {getRepository} from 'typeorm'
// import Log from '../entity/log'

const router = express.Router()

router.get('/',function(req,res){
    // const logRepo = getRepository(Log)
    // const log = new Log()
    // log.gmt_created = new Date().toUTCString()
    // log.ip = req.ip
    // log.content='visit'
    // log.operated_by= req.ip
    // log.url = req.url
    // logRepo.save(log)
    // console.log(req.ip)
    res.send('hello gblog!')
})

export default router